package 创建者模式.create.ofo;


import 创建者模式.Builder;
import 创建者模式.iml.Bike;

public class OfoBuilder extends Builder {
    private Bike mBike = new Bike();
    @Override
    protected void buildFrame() {
        mBike.setFrame(new CarbonFrame());
    }
    @Override
    protected void buildSeat() {
        mBike.setSeat(new RubberSeat());
    }
    @Override
    protected void buildTire() {
        mBike.setTire(new InflateTire());
    }
    @Override
    protected Bike createBike() {
        return mBike;
    }
}
